import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { Icon } from 'antd-mobile';

class YwxBackIcon extends Component {
    render() {
        return (
            <Icon type="left" size='md' onClick={() => { this.props.history.go(-1) }} />
        );
    }
}

export default withRouter(YwxBackIcon)